package com.webull.information.center.carwler.common.json.unit;

import org.apache.commons.lang3.StringUtils;

/**
 * 获取有权限的topNews的clolumnsId
 * 根据clolumnsId 获取概要列表
 */


public class GetNewsStory_1 {

    public final static String restUrl = "http://api.trkd.thomsonreuters.com/api/TopNews/TopNews.svc/REST/TopNews_1/GetNewsStory_1";

    public static String getRicRequestJson(String storyId) {
        String request_json = "{\n" +
                "    \"GetNewsStory_Request_1\":{\n" +
                "        \"Story\":[\n" +
                "            {\n" +
                "                \"StoryId\":{\n" +
                "                    \"htmlPreferred\":true,\n" +
                "                    \"identifierType\":\"PNAC\",\n" +
                "                    \"Value\":\"{0}\"\n" +
                "                }\n" +
                "            }\n" +
                "        ],\n" +
                "        \"timeOut\":40\n" +
                "    }\n" +
                "}";
        return StringUtils.replaceOnce(request_json, "{0}", storyId);
    }

}
